$(function() {
    $('#upload_file').submit(function(e) {
        e.preventDefault();
        $.ajaxFileUpload({
            url: './hoidap/hoidap/upload_file/',
            secureuri: false,
            fileElementId: 'userfile',
            dataType: 'json',
            success: function(data, status)
            {
            }
        });
        return false;
    });
});